
#ifndef _MEMBER_BLINEEDIT_H_
#define _MEMBER_BLINEEDIT_H_

#include <ctime>
#include <BClock>
#include <BPoint>
#include <BLine2>
#include <BString>
#include <BLineEdit>
#include "ITextBlock.h"

namespace BWE
{
	class member_BLineEdit
	{
	public:
		member_BLineEdit(BLineEdit* eidt);
		~member_BLineEdit();

		void freahText();
		void freshRects();

		BLineEdit*			boss;
		Align				align;
		bool				readOnly;
		BString				text;

		bool				dirty;
		bool				pressed;
		int					pressedIndex;
		bool				editing;
		int					hoverIndex;
		int					inputIndex;
		int					inputCount;
		bool				inputShown;
		clock_t				blinkTick;
		int					blinkTime;
		BRect				textRect;
		BArray<CodeCell>	cells;
	};
}

#endif